package xyz.suancaiyu.chapter45.service;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import xyz.suancaiyu.chapter45.dao.UserDao;
import xyz.suancaiyu.chapter45.entity.User;

/**
 * @author puruidong
 * @version 2018/12/28 23:01
 */
@Service
public class UserService {

    @Autowired
    private UserDao userRepository;

    public User findUserByName(String username) {
        return userRepository.findByUsername(username);
    }

}
